import axiosInstance from '@/api/axiosInstance'
interface monthlyStatListParams {
  stat_month?: string
  doctor_name?: string
  staff_code?: string
  page?: number
  pageSize?: number
  // 其他查询条件...
}

// 获取月度订单列表
export const getMonthlyStatList = async (params?: monthlyStatListParams) => {
  return axiosInstance.get('/admin/invoice-monthly-stat', { params })
}

// 获取月度订单详情
export const getMonthlyStatDetail = async (id: number) => {
  return axiosInstance.get(`/admin/invoice-monthly-stat/${id}`)
}

//导出月度订单列表
export const exportMonthlyStatList = async (params?: monthlyStatListParams) => {
  return axiosInstance.get('/admin/invoice-monthly-stat/export', { params, responseType: 'blob', timeout: 60000 })
}
